#include <stdio.h>
#define N 40
void main()
{
    int score[N],i=-1,j,counter=0,n;
    printf("please input the number of the whole class:");
    scanf("%d",&n);
    for(i=0;i<=n-1;i++)
    {
        printf("please input No.%d score:",i+1);
        scanf("%d",&score[i]);
    }
    for(j=1;j<=i;j++)
    {
        if(score[j]<60)
            counter++;
    }
    printf("There are %d students failed the exam.",counter);
}
